package top.zhangjianyong.tools.service.api;

import com.baomidou.mybatisplus.extension.service.IService;
import top.zhangjianyong.tools.entity.stock.StockUserGoods;
import top.zhangjianyong.tools.parm.stock.StockUserGoodsBorrowListParam;
import top.zhangjianyong.tools.parm.stock.StockUserGoodsBorrowParam;
import top.zhangjianyong.tools.utils.ApiResponse;

/**
 * @author zhangjianyong
 * @since 2025/4/1 下午4:39
 */
public interface StockUserGoodsService extends IService<StockUserGoods> {
    ApiResponse borrowReturn(StockUserGoodsBorrowParam param);

    Integer countUsedByGoodsId(Long goodsId);

    ApiResponse borrowList(StockUserGoodsBorrowListParam param);

    Integer countUsedByGoodsIdAndUserId(Long goodsId, Long userId);
}
